//将用户所有的完整路由定义在此处
// 用户路由 除了登入和404以外的页面 需要进行鉴权才能访问
// 符合路由规则的配置
const allRoutes = [
        {
          path:'attendance',
          component:()=>import(/*webpackChunkName:'attendance' */ '../pages/home/Attendance/index.vue'),
          name:'attendance',
          meta: { 
              fullPath:'/attendance',
              icon:'iconfont icon-kaoqin',
              name:'考勤管理'
           }
        },
        {
          path: "welcome",
          component: () =>
            import(/*webpackChunkName:"welcome" */ "../pages/home/welcome"),
            name:'welcome',
            meta: { 
                fullPath:'/welcome',
                icon:'iconfont icon-shouye',
                name:'管理首页'
             }
        },
        {
          path: "mine",
          component: () =>
            import(/*webpackChunkName:"mine" */ "../pages/home/Mine/index.vue"),
            name:'mine',
            meta: { 
                fullPath:'/mine',
                icon:'iconfont icon-wode1',
                name:'我的中心'
             }
        },
        {
          path: "statistics",
          component: () =>
            import(/*webpackChunkName:"statistics" */ "../pages/home/Statistics"),
            name:'statistics',
            meta: { 
                fullPath:'/statistics',
                icon:'iconfont icon-shuju1',
                name:'数据统计'
             }
        },
        {
          path: "users",
          component: () =>
            import(/*webpackChunkName */ "../pages/home/Users/index.vue"),
            name:'users',
            meta: { 
                fullPath:'/users',
                icon:'iconfont icon-yonghuguanli',
                name:'用户管理'
             },
        },
        {
          path: "studentManger",
          component: () =>
            import(
              /*webpackChunkName:"studentManger" */ "../pages/home/StudentManger/index.vue"
            ),
            name:'studentManger',
            meta: { 
                fullPath:'/studentManger',
                icon:'iconfont icon-xueyuan',
                name:'学员管理'
             },
             redirect: '/studentManger/studentProduct',
          children: [
            {
              path: "studentDormitory",
              component: () =>
                import(
                  /*webpackChunkName:"studentDormitory" */ "../pages/home/StudentManger/studentDormitory.vue"
                ),
                name:'studentDormitory',
                meta: { 
                    fullPath:'/studentManger/studentDormitory',
                    icon:'iconfont icon-sushe',
                    name:'学员宿舍'
                 },
            },
            {
              path: "studentProduct",
              component: () =>
                import(
                  /*webpackChunkName:"studentProduct" */ "../pages/home/StudentManger/studentProduct.vue"
                ),
                name:'studentProduct',
                meta: { 
                    fullPath:'/studentManger/studentProduct',
                    icon:'iconfont icon-dianpu',
                    name:'学员项目管理'
                 },
            },
            {
              path: "studentProfile",
              component: () =>
                import(
                  /*webpackChunkName:"studentProfile" */ "../pages/home/StudentManger/studentProfile.vue"
                ),
                name:'studentProfile',
                meta: { 
                    fullPath:'/studentManger/studentProfile',
                    icon:'iconfont icon-xinyongziliao',
                    name:'学员资料'
                 },
            },
          ],
        },
    
]
// console.log(allRoutes);

export default allRoutes